@echo off
setlocal
title "np_backend"

:Init
set JAVA_CMD="D:\Program Files\Java\JDK1.8\bin\java.exe"
if exist %JAVA_CMD% (
   set VAR_CMD=%JAVA_CMD%
) else set VAR_CMD=java

set VAR_VM_ARGUMENTS="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777"

:Run
%VAR_CMD% %VAR_VM_ARGUMENTS:~1,-1% -jar "%~dp0gams2.war" 

:End
endlocal